
const tableRouter = {
  path: 'table',
  component: { render(c) { return c('router-view') } }, // https://github.com/vuejs/vue-router/issues/2105
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'Table',
  meta: {
    title: 'Table',
    icon: 'table'
  },
  children: [
    {
      path: 'dynamic-table',
      component: () => import('@/views/example/table/dynamic-table/index'),
      name: 'DynamicTable',
      meta: { title: '动态 Table' }
    },
    // 不知道什么原因进入页面就假死
    // {
    //   path: 'drag-table',
    //   component: () => import('@/views/example/table/drag-table'),
    //   name: 'DragTable',
    //   meta: { title: '拖拽 Table' }
    // },
    {
      path: 'inline-edit-table',
      component: () => import('@/views/example/table/inline-edit-table'),
      name: 'InlineEditTable',
      meta: { title: 'Table 内编辑' }
    },
    {
      path: 'complex-table',
      component: () => import('@/views/example/table/complex-table'),
      name: 'ComplexTable',
      meta: { title: '综合 Table' }
    }
  ]
}

export default tableRouter
